﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RightFrame.Master" AutoEventWireup="true" CodeBehind="AddNode.aspx.cs"  Inherits="MyOA.UI.ScheduleManage.PersonNote.AddNode" %>



<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    你的位置：<a href="PersonNote.aspx?NodeValuePath=102003">个人便签</a>>个人便签设置
       
    <script type="text/javascript">
        var Alert=ymPrompt.alert;
        var Error=ymPrompt.errorInfo;
        
        var title,content;
        function check()
        {
         title=document.getElementById("<%=txtTitle.ClientID %>");
         content=document.getElementById("<%=txtNoteContent.ClientID %>");
       
        if(title.value=="")
        {
             Error("标题不能为空",null,null,"温馨提示",titleFocus);
             return false;
        }
        if(content.value=="")
        {
            Error("内容不能为空",null,null,"温馨提示");
             return false;
        }
        return true;
        }
        
      function titleFocus()
        {
             title=document.getElementById("ctl00_cphContnent_txtTitle");
         
            title.focus();
        }
        
         function contentFocus()
        {
         
             content=document.getElementById("<%=txtNoteContent.ClientID %>");
             alert("id:"+content.id);
            content.focus();
        }
        
         
        function href()
        {
            document.location.href="PersonNote.aspx?NodeValuePath=102003";
        }
        var result=false;
        function handler(tp){
			if(tp=='ok'){
			    result=true;
				//return true;
			}
			else{
			    result=false;
			    //return false;
			}
			//alert(result);
			
			 //ymPrompt.confirmInfo('确实要删除吗？',null,null,'温馨提示',handler);return result;
		}
    </script>
    
     
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="cphContnent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div id="addNode_body">
    
        <div id="addNode_title">
            个&nbsp;&nbsp;人&nbsp;&nbsp;便&nbsp;&nbsp;签&nbsp;&nbsp;设&nbsp;&nbsp;置
        </div>
        
        <div id="addNode_content">
            <div>便签标题：</div>
            <asp:TextBox ID="txtTitle" runat="server" CssClass="inputText" Width="332"></asp:TextBox>
            <div class="noteContent">便签内容：</div>
             <asp:TextBox id="txtNoteContent" runat="server" CssClass="txtNoteContent" Width="334px" Height="234px"	TextMode="MultiLine"></asp:TextBox><br/>
            <div class="create">
                <span class="spanCreateUser">创建人：<asp:Label ID="lblCreateUser" runat="server" Text="Label"></asp:Label></span>
                <span>创建时间：<asp:Label ID="lblCreateTime" runat="server" Text=""></asp:Label></span>
            </div>
            
            <div class="divButton">
                <asp:Button ID="btnSave" runat="server" Text="保存"  CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'" onMouseOut="document.getElementById(this.id).className='btnOut'" onclick="btnSave_Click"  OnClientClick="return check()"/>
                <asp:Button ID="btnDelete" runat="server" Text="删除" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'" onMouseOut="document.getElementById(this.id).className='btnOut'" OnClick="btnDelete_Click" OnClientClick="return confirm('确实要删除吗？')"/>
            </div>
        </div>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
